package com.woohua.demo.pdfSign.utils;

import com.itextpdf.text.pdf.security.TSAClient;
import com.itextpdf.text.pdf.security.TSAClientBouncyCastle;

/**
 * @author woo hua
 */
public class TsaClientBcFactory implements TsaClientFactory {
    private String tsaUrl;

    public TsaClientBcFactory(String tsaUrl) {
        this.tsaUrl = tsaUrl;
    }

    @Override
    public TSAClient newTsaClient() {
        return new TSAClientBouncyCastle(tsaUrl);
    }
}
